package com.jingxuan.dto.request;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class AddCartItemRequest {
    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空")
    private String productId;
    /**
     * 商品数量
     */
    @Min(value = 1, message = "商品数量必须大于等于1")
    private Integer quantity;
}
